home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ für Kids
/
C++ for kids.iso
/
Buch
/
Stringy.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1998-12-28
|
895b
|
27 lines
//---------------------------------------------------------------------------
#include <vcl\vcl.h>
#pragma hdrstop
#include "Stringy.h"
//---------------------------------------------------------------------------
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
char *StrToChar (String s) {return s.c_str ();}
String CharToStr (char *s) {return String(s);}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
char *Text = StrToChar (Edit1->Text);
Label1->Caption = CharToStr (Text);
}
//---------------------------------------------------------------------------